{% extends 'ApiCloud/Base/layout.common.html.twig' %}

{% block body %}
    {% include "ApiCloud/Base/inc.head.light.html.twig" with {title:"修改资料",back:1} %}
    <div class="fs10">
            <div class="fs10 padl5 padr5 flrc padt10">
                    <div class="">
                        <div class="flrc flex1 padl5">
                            <mu-paper class="ofh wh30-30 marr10" :z-depth="1">
                                 <img class="wh30-30" :src="picV" v-if="picV" onerror="this.src=pic404">
                            </mu-paper>
                            <mu-paper :circle="true" class="ofh wh30-30" :z-depth="1">
                                 <img class="wh30-30" :src="picV" v-if="picV" onerror="this.src=pic404">
                            </mu-paper>
                        </div>

                        <div class="mart5">
                            <mu-button color="" @click="selectEditPic()" full-width>
                                选择头像
                            </mu-button>
                        </div>
                    </div>
                <div class="pos-f b0 l0 w100 bc11 c13 flrc fs10" style="height: 11vw" v-if="toolsShow">
                    <div class="flex1 tac"><mu-button @click="save()">保存</mu-button></div>
                    <div class="flex1 tac"><mu-button @click="reset()">重置</mu-button></div>
                    <div class="flex1 tac"><mu-button @click="close()">取消</mu-button></div>
                </div>
            </div>

            <div class="fs10 pad5 marl20 marr20 mart10 ">
                    <mu-text-field v-model="name" placeholder="请输入昵称" full-width></mu-text-field>
            </div>
            <div class="fs8 c11 pad5 mart20">
                <mu-button large full-width round :color="c1" @click="submit()">确认修改</mu-button>
            </div>
    </div>
{% endblock %}

    {% block myJs %}

        <script type="text/javascript" src="{{ root }}/assets/oss/lib/crypto1/crypto/crypto.js"></script>
        <script type="text/javascript" src="{{ root }}/assets/oss/lib/crypto1/hmac/hmac.js"></script>
        <script type="text/javascript" src="{{ root }}/assets/oss/lib/crypto1/sha1/sha1.js"></script>
        <script type="text/javascript" src="{{ root }}/assets/oss/lib/base64.js"></script>
        {#<script type="text/javascript" src="{{ root }}/assets/oss/lib/plupload-2.1.2/js/plupload.full.min.js"></script>#}
        <script type="text/javascript" src="{{ root }}/assets/oss/uploadMy.js{{ rnd }}"></script>
    {% endblock %}
